package com.yunfeisoft.common.session;

import org.apache.commons.lang3.StringUtils;

/**
 * 系统域名获取
 *
 * @author Administrator
 */
public class WebDomainContext {

    //web后台系统域名
    private String webDomain;
    private String contextPath;

    public String getContextPath() {
        return contextPath;
    }

    public void setContextPath(String contextPath) {
        this.contextPath = contextPath;
    }

    public String getWebDomain() {
        if (StringUtils.isBlank(webDomain)) {
            return contextPath;
        }
        return webDomain;
    }

    public void setWebDomain(String webDomain) {
        this.webDomain = webDomain;
    }
}
